<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<link rel="stylesheet" href="/viamais-web/css/style.css"
		type="text/css" />
	<title>#{x['faces.message.index.title']}</title>
</h:head>
<body
	style="background-image: url('/viamais-web/images/background.jpg');">
	<h:form>
		<p:growl id="msgs" />
		<p:focus for="user"></p:focus>
		<p:panel id="pnl" header="#{x['faces.message.index.panel']}"
			style="width:300px; position:static; left:500px; top:100px;">
			<h:panelGrid  columns="2" cellpadding="5">
				<label>#{x['faces.message.index.user']}: </label>
				<p:inputText id="user"
					requiredMessage="#{x['faces.message.index.user.required']}"
					value="#{loginMB.username}" required="true" />
				<label>#{x['faces.message.index.password']}: </label>
				<p:password id="password" value="#{loginMB.password}"
					required="true" requiredMessage="#{x['faces.message.index.password.required']}"
					feedback="false" minLength="5"></p:password>
				<p:commandButton type="submit" action="#{loginMB.doLogin}"
					value="#{x['faces.button.label.generic.enter']}" ajax="false"/>
			</h:panelGrid>
		</p:panel>
		<p:draggable for="pnl" />
	</h:form>
</body>
</html>


